import request from "@/request/request.js";

// 获取移库列表

export const getMovementTaskList = (data) => {
  return request.get(`/admin-api/inventory/movement-task/page?${data}`);
};

// 删除
export const deleteMovementTask = (data) => {
  return request.get(`/admin-api/inventory/movement-task/delete?${data}`);
};

// 关闭
export const closeMovementTask = (data) => {
  return request.get(`/admin-api/inventory/movement-task/close?${data}`);
};

// 确认
export const checkMovementTaskList = (data) => {
  return request.get(`/admin-api/inventory/movement-task/check?${data}`);
};

// 详情基础信息
export const getMovementTaskDetailsBase = (data) => {
  return request.get(`/admin-api/inventory/movement-task/get?${data}`);
};

// 获取详情列表信息
export const getMovementTaskDetailsList = (data) => {
  return request.get(
    `/admin-api/inventory/movement-task/get-bill-list-by-id?${data}`
  );
};

export const getRackCodeMap = (data) => {
  return request.post(
    `/admin-api/inventory/storage-rack/get-rack-code-map-by-rack-ids`,
    data
  );
};

// 获取目标架基础位置字典
export const getRackBasePositionMap = (data) => {
  return request.post(
    `/admin-api/inventory/storage-position/get-rack-base-position-map-rack-ids`,
    data
  );
};

// 移库确认

export const confirmMovement = (data) => {
  return request.post(`/admin-api/inventory/movement-task/confirm-move`, data);
};
